package com.yang.sms.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 短信发送任务明细
 * @TableName sms_task_detail
 */
@TableName(value ="sms_task_detail")
@Data
public class SmsTaskDetail{
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * sms_task.id
     */
    @TableField(value = "task_id")
    private Integer taskId;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 模板参数json
     */
    @TableField(value = "template_param_json")
    private String templateParamJson;

    /**
     * 计划发送时间
     */
    @TableField(value = "plan_send_time")
    private LocalDateTime planSendTime;

    /**
     * 实际发送时间
     */
    @TableField(value = "actual_send_time")
    private LocalDateTime actualSendTime;

    /**
     * 状态(1:待发送,2:待定时发送,11:发送MQ成功,12:MQ消费成功,21:请求成功,22:请求失败,31:取消发送)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 短信内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

}